#include<stdio.h>
#include<math.h>
int main()
{
	int s1,s2,s3;
	int a,b,c,sum;
	scanf("%d %d %d",&s1,&s2,&s3);
	a=sqrt(s1*s2/s3);
	b=sqrt(s1*s3/s2);
	c=sqrt(s2*s3/s1);
	sum=(a+b+c)*4;
	printf("%d",sum);
	return 0;
}

